<style>
	table tr td {
		text-align:center;
	}
</style>
  <form class="form-search" action="" method="post" onsubmit="reload();return false;">
		<div class="input-prepend"><span class="add-on">消费日期</span><input type="text" name="startdate" id="start"/></div>&nbsp;&nbsp;至&nbsp;&nbsp;<input type="text" name="enddate" id="end"/>
		<div class="input-prepend"><span class="add-on">账号</span><input type="text" class="input-medium" name="account"></div>
		<button type="submit" class="btn btn-primary" onclick="">搜&nbsp&nbsp&nbsp索</button>
    </form>
<table class="table table-bordered table-striped table-hover">
	<thead><tr><td>账户ID</td><td>账号</td><td>企业名称</td><td>联系人</td><td>消费日期</td><td>消费金额</td><td>备注</td></tr></thead>
	<tbody>

		<volist name="list" id="vo">
			<tr><td>{$vo.uid}</td><td>{$vo.account}</td><td>{$vo.company_name}</td><td>{$vo.company_contacter}</td><td>{$vo.create_time}</td><td>{$vo.total}</td><td>{$vo.remark}</td></tr>
		</volist>
	</tbody>
</table>
<div class="pagination" style="float:right">
	<select name="pageNum" style="margin-top:-20px;width:60px">
		<option>10</option>
		<option>20</option>
		<option>30</option>
	</select>
	{$page}
</div>
<script>
    //日期选择框
	datepickerRange('start','end');
	//搜索
	function loginLogSearch(url){
//		alert(getInputValueByName('startdate')+"-"+getInputValueByName('enddate')+"-"+getInputValueByName('company_name'));
	//	$.getJSON(url,{startdate:getInputValueByName('startdate'),enddate:getInputValueByName('enddate'),company_name:getInputValueByName('company_name')},function(json){
			$("#maincontent").load('__APP__/Account/consumeRecords',{startdate:getInputValueByName('startdate'),enddate:getInputValueByName('enddate'),account:getInputValueByName('account')});
		//	if(json.status == 1){
		//		$.remind('提示',json.info);
		//	}else{
		//		$.warn("错误提示",json.info);
		//	}
	//	});
	}
	function reload(){
		$("#maincontent").load('__APP__/Account/consumeRecords',{startdate:getInputValueByName('startdate'),enddate:getInputValueByName('enddate'),account:getInputValueByName('account')});
	}
</script>